/*
 * Button.h
 *
 * Author: Samuel Queiroz
 */

#ifndef BUTTON_H_
#define BUTTON_H_

#define X_UPPERBOUND 10
#define Y_UPPERBOUND 20

class SimpleButton
{

private:

	bool pressed;

public:

	inline bool isPressed()
	{
		return pressed;
	}

	inline void press()
	{
		this->pressed = true;
	}

	inline void release()
	{
		this->pressed = false;
	}

};

class AnalogButton
{

private:

	int x, y;

public:

	inline int getX()
	{
		return x;
	}

	inline void setX(int x)
	{
		this->x = x;
	}

	inline int getY()
	{
		return y;
	}

	inline void setY(int y)
	{
		this->y = y;
	}

};

#endif
